package entity;

import java.util.HashSet;
import java.util.Set;

/**
 * Roleinfo entity. @author MyEclipse Persistence Tools
 */

public class Roleinfo implements java.io.Serializable {

	// Fields

	private Boolean id;
	private String name;
	private String roledesc;
	private Boolean roleflag;
	private Set userinfos = new HashSet(0);
	private Set rightinfos = new HashSet(0);

	// Constructors

	/** default constructor */
	public Roleinfo() {
	}

	/** minimal constructor */
	public Roleinfo(Boolean id, String name, Boolean roleflag) {
		this.id = id;
		this.name = name;
		this.roleflag = roleflag;
	}

	/** full constructor */
	public Roleinfo(Boolean id, String name, String roledesc, Boolean roleflag,
			Set userinfos, Set rightinfos) {
		this.id = id;
		this.name = name;
		this.roledesc = roledesc;
		this.roleflag = roleflag;
		this.userinfos = userinfos;
		this.rightinfos = rightinfos;
	}

	// Property accessors

	public Boolean getId() {
		return this.id;
	}

	public void setId(Boolean id) {
		this.id = id;
	}

	public String getName() {
		return this.name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getRoledesc() {
		return this.roledesc;
	}

	public void setRoledesc(String roledesc) {
		this.roledesc = roledesc;
	}

	public Boolean getRoleflag() {
		return this.roleflag;
	}

	public void setRoleflag(Boolean roleflag) {
		this.roleflag = roleflag;
	}

	public Set getUserinfos() {
		return this.userinfos;
	}

	public void setUserinfos(Set userinfos) {
		this.userinfos = userinfos;
	}

	public Set getRightinfos() {
		return this.rightinfos;
	}

	public void setRightinfos(Set rightinfos) {
		this.rightinfos = rightinfos;
	}

}